import { sytRequest } from "@/request"
// GET /admin/order/orderInfo/{page}/{limit}获取分页列表
export const getOrderList = async (page: number, limit: number, params?: any) => {
  return await sytRequest.get(`/admin/order/orderInfo/${page}/${limit}`, {
    params
  })
}
// 获取订单状态 /admin/order/orderInfo/getStatusList
export const getStatusList = async () => {
  return await sytRequest.get('/admin/order/orderInfo/getStatusList')
}
// GET /admin/order/orderInfo/show/{id}
export const getOrderById = async (userId: number) => {
  return await sytRequest.get(`/order/orderInfo/show/${userId}`)
}